package com.lecyon.farm.service;

import com.lecyon.farm.base.RestResponse;
import com.lecyon.farm.vo.query.QueryUploadTokenVo;
import com.lecyon.farm.vo.view.UploadTokenVo;

/**
 * @author Yao Zheng
 * @Date 2019/10/12 16:58
 */
public interface IUploadTokenService {

    /**
     * 生成上传token
     *
     * @return token
     */
    String getUploadToken();

    /**
     * 根据客户端传来的jwtToken先验证然后发放uploadToken
     *
     * @param vo 查询上传token的Vo
     * @return RestResponse
     */
    RestResponse<UploadTokenVo> requestUploadToken(QueryUploadTokenVo vo);
}
